package com.zn.mapper;

import com.zn.entity.DocumentaryOpenOrder;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface DocumentaryOpenOrderMapper {

    int insert(DocumentaryOpenOrder record);

    int insertSelective(DocumentaryOpenOrder record);

    DocumentaryOpenOrder selectByPrimaryKey(String openId);

    int updateByPrimaryKeySelective(DocumentaryOpenOrder record);

    int updateByPrimaryKey(DocumentaryOpenOrder record);

    List<DocumentaryOpenOrder> selectListByOrderRef(@Param("orderRef")String orderRef);

    DocumentaryOpenOrder selectByOrderRef(Map<String,Object> map);

    int updateCalculationData(Map<String,Object> map);

    int updateEffectiveHoldVolume(DocumentaryOpenOrder documentaryOpenOrder);
}